From eab869a86a942e01a799bb3ec56cb24105902461 Mon Sep 17 00:00:00 2001 From: Kaushik Kumar Ram Date: Fri, 26 Aug 2011 14:58:41 +0100 Subject: [PATCH] Add missing 'break' statement. Without the 'break', assigning a pci device to a PV guest results in an abort, since the code always falls through to the default abort case in the switch statement. Signed-off-by: Kaushik Kumar Ram Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/libxl_pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 331e0a5cbb..1669e17027 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -696,6 +696,7 @@ static int do_pci_add(libxl__gc *gc, uint32_t domid, libxl_device_pci *pcidev, i } } fclose(f); + break; } default: abort(); -- 2.30.2